package org.etherframework.tests.features.dependency.models
{
	import org.etherframework.IEther;
	import org.etherframework.common.IManagedDestroyable;
	import org.etherframework.common.IPersistent;
	import org.etherframework.common.IStatefulDestroyable;

	public class SimpleModel implements IStatefulDestroyable
	{
		public static var instanceCounter:int = 0;
		
		public var ether:IEther;
		public var isDestroyExecuted:Boolean;
		private var _destroyed:Boolean;
		
		public function SimpleModel(ether:IEther)
		{
			this.ether = ether;
			
			instanceCounter++;
		}
		
		public function destroy():void
		{
			isDestroyExecuted = true;
		}
		
		public function get destroyed():Boolean { return _destroyed; }
		public function set destroyed(value:Boolean):void { _destroyed = value; }
		
		public function persisted():void
		{
			
		}
	}
}